﻿<Window x:Class="CredentialsManager.Views.MainWindowView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:h="clr-namespace:CredentialsManager"
        h:MainMenuHelper.HideMainMenu="True"
        Title="{Binding DisplayName}" Height="600" Width="750">
    <DockPanel LastChildFill="True">
        <Grid Background="White" DockPanel.Dock="Top">
            <Menu Name="mnuMain" IsMainMenu="True" Background="White">
                <Menu.BitmapEffect>
                    <DropShadowBitmapEffect ShadowDepth="3"/>
                </Menu.BitmapEffect>
                <MenuItem Header="_File">
                    <MenuItem Header="E_xit" Command="{Binding CloseCommand}" />
                </MenuItem>
            </Menu>
        </Grid>
        <Grid>
            <TabControl 
                IsSynchronizedWithCurrentItem="True" 
                ItemsSource="{Binding Workspaces}" SelectedItem="{Binding ActiveWorkspace}">
                <TabControl.ItemTemplate>
                    <DataTemplate>
                        <DockPanel>
                            <ContentPresenter 
                                Content="{Binding Path=DisplayName}" 
                                VerticalAlignment="Center" />
                        </DockPanel>
                    </DataTemplate>
                </TabControl.ItemTemplate>
            </TabControl>
        </Grid>
    </DockPanel>
</Window>
